<?php
namespace app\common\model;
use think\Db;
use think\Model;

class City extends Model{

    protected $table = "jiujiu_city";

    public function  getCityByPid($pid){

        return $this->where('pid',$pid)->select();
    }

    public function  getAllCountry(){

        return $this->where('cate',1)->select();
    }

}